package cn.mjnxin.iot.base.constant;

/**
 * 命令字相关常量
 * @author CLG 2023年10月10日
 * @version V1.0.0
 */
public class ConstantValue {
	public static final String  GATE_HEAD_DATA           = "FAFB";
	public static final int     GATE_HEAD_DATA_LEN       = GATE_HEAD_DATA.length() / 2;
	public static final int     GATE_HEAD_LENGTH         = 28 + GATE_HEAD_DATA_LEN;
	public static final String  SPLIT_CHAR               = ":";
	public static final String  CONNECTOR_CHAR           = ":";

	public static final Integer TYPE_ALL_HOST_LOGIN_GATE = 0x00; // Host登录Gate全匹配的协议
	public static final Integer TYPE_TERMINAL_TO_HOST    = 0x01; // Terminal请求Host报文
	public static final Integer TYPE_HOST_TO_TERMINAL    = 0x02; // Host请求Terminal报文
	public static final Integer TYPE_HOST_MNGALL_LOGIN   = 0x03; // 管理Host向Gate登录用于匹配所有PID
	public static final Integer TYPE_HOST_MNGPID_LOGIN   = 0x04; // 管理Host向Gate登录用于匹配指定PID
	public static final Integer TYPE_HOST_MNG_TERMINAL   = 0x0A; // Host管理某个Terminal
	public static final Integer TYPE_HOST_RLS_TERMINAL   = 0x0B; // Host释放某个Terminal
	public static final Integer TYPE_HOST_CLS_TERMINAL   = 0x0C; // Host请求Gate断连Terminal
	
	public static final Integer TYPE_HOST_LOGIN_GATE     = 0x05; // Host向Gate登录
	public static final Integer TYPE_GATE_LOGIN_HOST     = 0x06; // Gate向Host登录
	public static final Integer TYPE_TERMINAL_LINK       = 0x07; // Gate通知Host Terminal连接
	public static final Integer TYPE_TERMINAL_UNLINK     = 0x08; // Gate通知Host Terminal断连
	public static final Integer TYPE_TERMINAL_TIMEOUT    = 0x09; // Gate通知Host Terminal超时
	public static final Integer TYPE_TERMINAL_CLOSED     = 0x0A; // Gate通知Host Terminal被断连
}
